<?php
	//error_reporting (0);
    require_once '../init.define.php';  
    
    ob_start();
    session_start();
    //if($pq->checkAdminLogin()==false) header("Location: login.php");
    if(!isset($_SESSION['admin_id']) && !isset($_POST['admin_username'])) 
    {
        
        require_once PATH_ADMIN.'/login.php';  
        $login = new admin_module_login();  
        $login->_login();
        header("login.php");   
        exit();
    }         
    require_once PATH_ADMIN.'/default.php'; 
    $index = new admin_index();
    $index->autorun();  
?>
